package sharedData;

/**
 * Inherits from {@link ADataItem}.
 * 
 * @author Didzis Petkus, Danny Johansen, Liviu Berheci
 * 
 */
public class DebugItem extends ADataItem {

	private String message;

	/**
	 * Constructs new {@link DebugItem} with given parameters
	 * @param dataType - byte data type
	 * @param x - float x coordinate
	 * @param y - float y coordinate
	 * @param heading - float heading
	 * @param msg - text message
	 */
	public DebugItem(byte dataType, float x, float y, float heading, String msg) {
		super(dataType, x, y, heading);
		this.message = msg;
	}

	/**
	 * Returns the message.
	 * @return - string the message
	 */
	public String getMessage() {
		return message;
	}

}
